package com.wez.service.impl;

import com.wez.dao.BookMapper;
import com.wez.pojo.Book;
import com.wez.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class BookServiceImpl implements BookService {
    @Autowired//自动注入,给属性赋值
    private BookMapper bookMapper;

    public Book findBookById(Integer id){
        return bookMapper.findBookById(id);
    }


}
